import {createReducer} from '../utils';
import * as types from '../constants';

const initialState = {
    demo: 0,
};

export default createReducer(initialState, {
    [types.DEMO_TYPE]: (state, payload) => {
        return Object.assign({}, state, {
            'demo': payload.data + 1
        });
    }
});
